package com.zls.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zls.pojo.Department;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {
    public Department selectDeptHaveEmpsById(Integer id) ;

    public Department selectDeptHaveEmpsLazyById(String deptName);

    public int insertDept(Department department);

    public int updateDept(Department department);

    public int deleteById(Integer deptId);

    public Department selectByName(String name);

    public Department selectDeptById(Integer id);

    public List<Department> selectAll();
}
